import request from '@/utils/request'

export default {
  //审核评论
  commentReview(review) {
    return request({
      url: `/admin/comments/review`,
      method: 'put',
      data: review
    })
  },
  //删除评论
  deleteCommentsByIds(commenIds) {
    return request({
      url: `/admin/comments`,
      method: 'delete',
      data: commenIds
    })
  },
  //获取评论列表(后端)
  commetList(params) {
    return request({
      url: `/admin/comments`,
      method: 'get',
      params: params
    })
  },
}